package com.kuaixueit.crm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

  //通用的页面跳转
  //访问路径实例html_test.do 视图名html/test
  @RequestMapping("{path}")
  public String toPage(@PathVariable("path")String path){
    path = path.replace("_", "/");
    return path;
  }
}
